from ninja import Router

index_router = Router()

@index_router.get("/login", summary="登录")
def login(request):
    return {
        'name': 'home'
    }


@index_router.get("/reg", summary="注册")
def reg(request):
    return {
        'name': 'home注册'
    }
